import { getFilms } from "../models/movieapi";
// eslint-disable-next-line import/no-anonymous-default-export
export const transferAction =
	(page = 10) =>
	async (dispatch) => {
		let ret = await getFilms(page);
		dispatch({
			type: "addFilmList",
			data: ret.data.films,
		});
	};
